<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>My JSP 'displayNews.jsp' starting page</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<LINK href="<%=basePath%>/css/main.css" type="text/css" rel="stylesheet">
<script type="text/javascript">
	function del(id){
	if(window.confirm("确定删除？")){
		window.location="HotNewsServlet?action=del&newsID="+id;
		alert("删除成功！");
	}	
}
function updateNews(id){
	window.location="HotNewsServlet?action=edit&newsID="+id;	
}
	</script>

</head>

<body>
<TABLE class=small cellSpacing=0 cellPadding=3 width="100%" border=0>
	<TBODY>
		<TR>
			<TD class=Big><IMG src="<%=basePath%>/img/office/address.gif"
				align=absMiddle><SPAN class=big3>&nbsp; 查看学子园地文章 </SPAN></TD>
		</TR>
	</TBODY>
</TABLE>

<table class="TableBlock" width="750" align="center">
	<tr align="center" class="small">

		<td class="TableData" width="100"><b>标题：</b></td>
		<td class="tdstyle"><b>${newsvo.newsTitle }</b></td>

	</tr>
	<tr align="center" class="small">

		<td class="TableData" width="100"><b>所属栏目：</b></td>
		<td class="tdstyle"><b>${newsvo.typeName }</b></td>

	</tr>
	<tr align="center" class="small">

		<td class="TableData"><b>发布时间：</b></td>
		<td class="tdstyle"><b>${newsvo.publishTime }</b></td>
	</tr>
	<tr align="center" class="small">

		<td class="TableData"><b>内容：</b></td>
		<td class="tdstyle"><b>${newsvo.newsContext }</b></td>
	</tr>
	<tr align="center" class="small">
		<td class="TableData" colspan="2"><input type="button"
			onclick="del(${newsvo.newsID})" class="SmallButton" value="删除" /> <input
			type="button" value="修改" class="SmallButton"
			onclick="updateNews(${newsvo.newsID})" /> <input type="button"
			onclick="javascript:history.go(-1);" class="SmallButton" value="返回" />
		</td>
	</tr>



</table>
</body>
</html>
